import request from '@/utils/request'

/**
 * 问题汇总列表
 * @param {*} data
 */
export function reportIssueListQueryAPI(reportId) {
  return request({
    url: `oaExecutionReportIssue/queryListByReportId/${reportId}`,
    method: 'post'
  })
}

/**
 * 新增/修改
 * @param {*} data
 */
export function reportIssueAddOrUpdateAPI(data) {
  return request({
    url: `oaExecutionReportIssue/addOrUpdate`,
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 删除
 * @param {*} data
 */
export function reportIssueDeleteAPI(id) {
  return request({
    url: `oaExecutionReportIssue/deleteById/${id}`,
    method: 'post'
  })
}


